package com.chinasofti.demo04;

import com.chinasofti.demo3.Granddad;

class GrandPa{
    int num = 1;
}
public class Fu extends GrandPa {
    //int num = 10;
}
class Zi extends Fu{
    //int num = 20;
    public  void show(){
       //int num = 30;
        System.out.println(num);
    }
}
class Demo04{
    public static void main(String[] args) {
        Zi z = new Zi();
        z.show();
    }
}
